package me.qi.kancha;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 *
 * @author sun
 * @date 2022/01/05 11:52
 * @modified By：
 */
@EnableAsync
@EnableScheduling
@EnableResourceServer //资源服务
@EnableAuthorizationServer //认证服务
@EnableTransactionManagement //开启事物管理器
// @EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING) //解决问题JMX重复注册问题,
@SpringBootApplication(scanBasePackages = {"com.xhyt.common.resource",
        "me.qi.kancha"})//扫描bean
@MapperScan("me.qi.kancha.mapper")
public class KanchaServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(KanchaServerApplication.class, args);
    }
}
